CREATE TABLE [dbo].[tb_Competencias]
(
[idCompetencia] [int] NOT NULL IDENTITY(1, 1),
[CodigoCompetencia] [int] NULL,
[Descripcion] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Area] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_Competencias] ADD CONSTRAINT [PK__tb_Competencias__74607510] PRIMARY KEY CLUSTERED  ([idCompetencia]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_Competencias] ADD CONSTRAINT [FK_tb_Competencias_tb_areaJuntas] FOREIGN KEY ([Area]) REFERENCES [dbo].[tb_areaJuntas] ([id])
GO
